package com.chenjinyan.back.vo;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
public class PicVo implements Serializable {


    private static final long serialVersionUID = -8190313907993529132L;

    private Long id;

    @NotNull(message = "URL不能为空")
    @Size(min = 1, max = 200, message = "URL由1-20位字符组成")
    private String backPicUrl;

    @NotNull(message = "描述不能为空")
    @Size(min = 1, max = 200, message = "描述由1-20位字符组成")
    private String description;

    private String pageNo;

    private String pageSize;
}
